<?php

class Coach extends CActiveRecord
{
    public $id;

    public function tableName()
    {
        return 'coaches';
    }

    public function relations()
    {
        return array(
            'person' => array(self::BELONGS_TO, 'Person', 'person_id')
        );
    }

    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }
}